#coding=utf-8

# 问题项
class MZCCProblemItem:

	def __init__(self):
		self.lineNum = 0;		#问题行号
		self.desc = "";			#问题描述
		self.ruleId = "";		#问题Id

	def formatStr(self):
		return "第" + str(self.lineNum) + "行 " + self.desc;

	def dicInfo(self):
		tmpDic = {
			"ruleId":self.ruleId,
			"lineNum":self.lineNum,
			"desc":self.desc,
		}
		return tmpDic;

	def simpleDicInfo(self):
		tmpDic = {
			"ruleId":self.ruleId,
			"lineNum":self.lineNum,
		}
		return tmpDic;

	# 顺序：ruleId，LineNum
	def simpleListInfo(self):
		tmpList = [
			self.ruleId,
			self.lineNum,
		]
		return tmpList;
